#!/bin/sh

F="xx.ftp"

#./build
make
cp ~/Download/linux-2.6.32.2/drivers/char/car_sensor.ko ./
cp ~/Download/linux-2.6.32.2/drivers/char/car_led.ko ./
echo "copy done"
echo "open 192.168.1.106 21" > $F
echo "user plg plg" >> $F
echo "bin" >> $F
echo "put car" >> $F
echo "put car_sensor.ko" >> $F
echo "put car_led.ko" >> $F
echo "by" >> $F
ftp -i -in < $F
rm -rf $F

echo "well done"
